package com.michael.study.customview.animation.evaluator

import android.animation.TypeEvaluator

class CharEvaluator : TypeEvaluator<Char> {
    override fun evaluate(
        fraction: Float,
        startValue: Char,
        endValue: Char
    ): Char {
        var startValue : Int = startValue.toInt()
        var endValue : Int = endValue.toInt()
        var curValue = startValue + fraction * (endValue - startValue)
        return curValue.toChar()
    }
}